﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace upcdew_20111_group2b.CapaDominio
{
    public class Residente
    {
        //Campos de la entidad
        public String CodResidente { get; set; }
        public String Nom_Residente { get; set; }
        public DateTime Fec_Nacimiento { get; set; }
        public String Tex_Correo { get; set; }
        public String Tex_Clave { get; set; }
        [Required(ErrorMessage = "El DNI es obligatorio")]
        [StringLength(8, ErrorMessage = "Máximo 8 caracteres")]
        public String Tex_Dni { get; set; }
        public String Tex_Tipo_Residente { get; set; }
    }
}